package io.zsy.hello.factory.bean;

import io.zsy.hello.dao.UserDao;
import io.zsy.hello.dao.UserDaoImpl;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author zhangshuaiyin
 * @date 2022/4/21 21:01
 */
public class UserDaoFactoryBean implements FactoryBean<UserDao> {
    @Override
    public UserDao getObject() {
        return new UserDaoImpl();
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }

    @Override
    public boolean isSingleton() {
        return FactoryBean.super.isSingleton();
    }
}
